<!DOCTYPE html>
<html>
<head>
    <title>jQuery Mobile Application</title>
</head>
<body>
<div>
    点击连接
    <br/>
    如果已经安装网易新闻客户端将<font color="blue">打开对应新闻</font>
    <br/>
    否则<font color="red">打开 APPSTORE</font>
    <br/>
    <a href="newsapp://doc/8A7OMFOJ00014JB6"></a>
    <a onClick="javascript:try_to_open_app();" href="newsapp://doc/8A7OMFOJ00014JB6">打开网易新闻</a>
</div>
<script language="javascript">
    var timeout;
    function open_appstore() {
        window.location = 'http://itunes.apple.com/cn/app/id425349261?mt=8';
    }

    function try_to_open_app() {
        timeout = setTimeout('open_appstore()', 300);
    }
</script>
</body>
</html>  